package com.foreverwin.mes.so.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.so.dto.InactiveTimeDto;
import com.foreverwin.mes.so.model.CycleTimeConfig;
import com.foreverwin.mes.so.model.CycleTimeConfigView;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-01-14
 */
@Repository
public interface CycleTimeConfigMapper extends BaseMapper<CycleTimeConfig> {

    List<CycleTimeConfigView> selectKeySelective(CycleTimeConfigView cycleTimeConfigView);

    List<CycleTimeConfig> selectByItemAndOperation(@Param("site") String site, @Param("itemBo") String itemBo, @Param("operation") String operation);

    List<InactiveTimeDto> selectInactiveTime(@Param("site") String site, @Param("item") String item);

}